﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="chaxun_jigou.aspx.cs" Inherits="chaxun_jigou" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>
    <link href="../style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">  
    <table cellspacing="0" class="font33" style="width: 820px;margin-top:10px;">
        <tr>          
            <td style="width: 546px" colspan="3">
                <asp:Label ID="Label3" runat="server" Height="24px" Text="选择机构：" Width="82px"></asp:Label><asp:DropDownList
                    ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource2"
                    DataTextField="jigou" DataValueField="jigou" Width="254px" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                </asp:DropDownList>
                <asp:Label ID="tea_jigou" runat="server" Text="" Visible=false></asp:Label>
                </td>           
        </tr>
        <tr>         
            <td style="width: 546px" colspan="3">
			<asp:Label ID="Label1" runat="server" Text="     "></asp:Label>
                <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataSourceID="SqlDataSource1"
                    Height="51px" Width="820px" BorderWidth=0 class="border_det">
                    <Fields>
                        <asp:BoundField DataField="jigou" HeaderText="机构名称" SortExpression="jigou" />
                        <asp:BoundField DataField="username1" HeaderText="负责人" SortExpression="username1" />
                        <asp:BoundField DataField="city" HeaderText="所在城市" SortExpression="city" />
                        <asp:BoundField DataField="email" HeaderText="email" SortExpression="email" />
                        <asp:BoundField DataField="mobile" HeaderText="手机" SortExpression="mobile" />
                        <asp:BoundField DataField="zhuceRS" HeaderText="注册人数" SortExpression="zhuceRS" />
                        
                        <asp:TemplateField HeaderText="机构简介">
                            <ItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" Height="171px" Text='<%# Eval("grjj") %>'
                                    TextMode="MultiLine" Width="490px"></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:HyperLinkField DataNavigateUrlFields="jigou" DataNavigateUrlFormatString="~/kecheng/chaxun_jigou_kecheng.aspx?zjigou={0}"
                            DataTextField="jigou" HeaderText="操作" DataTextFormatString="查看“{0}”开设的课程" Visible="False" />
                    </Fields>
                </asp:DetailsView>
            </td>           
        </tr>       
        <tr>
            <td style="width: 57px">
            </td>
            <td style="width: 546px">
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:gConnectionString %>"
                    SelectCommand="SELECT [jigou], [id], [role], [username1], [city], [email], [mobile], [grjj],[zhuceRS],[yiskf] FROM [account] WHERE (([role] = @role) AND ([jigou] = @jigou) OR ([jigou]=@jigou1))">
                    <SelectParameters>
                        <asp:Parameter DefaultValue="机构" Name="role" Type="String" />
                        <asp:ControlParameter ControlID="DropDownList1" Name="jigou" PropertyName="SelectedValue"
                            Type="String" />
                        <asp:Parameter DefaultValue="远程教育平台" Name="jigou1" Type="String" />
                    </SelectParameters>
                </asp:SqlDataSource>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:gConnectionString %>"
                    SelectCommand="SELECT DISTINCT [jigou] FROM [account] WHERE (([role] = @role1) OR ([role] = @role2))">
                    <SelectParameters>
                        <asp:Parameter DefaultValue="机构" Name="role1" Type="String" />
                        <asp:Parameter DefaultValue="管理员" Name="role2" Type="String" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </td>
            <td style="width: 100px">
            </td>
        </tr>
</table>
</form>
</body>
</html>
